MailPoet\Segments\SegmentsRepository S

Total Complexity 36
Dependencies 18
Dependents 41
Total lines 319
Lines of code 231
Logical lines of code 109
Comment lines 29
Methods 17
Properties 4

Methods 17

Method Rating Maintainability Complexity Lines of code
createOrUpdate()
A
43 10 49
verifyDynamicSegmentExists()
S
58 4 15
bulkDelete()
S
47 2 39
updateDeletedAt()
S
60 2 14
getWPUsersSegment()
S
61 2 13
getWooCommerceSegment()
S
61 2 13
getCountsPerType()
S
61 2 13
isNameUnique()
S
60 2 13
verifyNameIsUnique()
S
72 2 5
getSegmentCountWithMultipleFilters()
S
60 1 14
findByUpdatedScoreNotInLastDay()
S
63 1 12
getEntityClassName()
S
82 1 3
bulkTrash()
S
67 1 7
doTrash()
S
79 1 3
bulkRestore()
S
79 1 3
findByTypeNotIn()
S
68 1 8
__construct()
S
68 1 7